#pragma once
#include "common.h"
#include <mutex>
#include <thread>
const static int MAX_LIST = 208;


 
class ThreadCache
{
public:
    void* Allocation(size_t size);

    void Dealloction(void* ptr, size_t size);
private:
    FreeList _memorylist[MAX_LIST];
};

static __thread ThreadCache* PTLSthreadCache = nullptr;
//__thread static ThreadCache* PTLSthreadCache = nullptr;